home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS08.ADF / AmigaBasicProgs / cload.doc < prev    next >
Text File  |  1986-04-02  |  2KB  |  48 lines

  1. Binary files on CIS are stored in HEX format, similar to the more common 
  2. Intel hex format.  Since these hex files are made up of normal seven bit 
  3. ASCII characters they may be captured to disk just like ordinary text files, 
  4. without needing to use a binary file transfer protocol, such as Xmodem.  
  5.  
  6. 1.  Capture the file CLOAD.MSB to disk.  The program runs under AmigaBasic 
  7. and will ask for input(hex) and output(binary) filenames.
  8.  
  9. 2.  Capture the target file to disk as Ascii.  It should look like rows of 
  10. numbers, all starting with colons.  Clean it up with STRIP or ED if necessary 
  11. -- no extra lines or characters allowed!
  12.  
  13. 3.  Run Cload on the captured hex file.
  14.  
  15. 4.  When Cload is finished the binary image file is closed, and should be 
  16. ready to run.  If the initial upload of the file to CIS included ^Z's (1Ah) as 
  17. end of file markers, CIS may have merged them with the file.  So check file 
  18. length.
  19.  
  20. That's all there is to it.  Cload runs kinda slow, being in Basic and so 
  21. forth, but it has been tested on the hex file of Aterm4 and produced a file 
  22. identical to an Xmodem download.  
  23.  
  24. -------
  25.  
  26. Error checking
  27.  
  28. A real problem with Ascii capture is the lack of real-time checksum or CRC 
  29. validation of the files being passed.  The hex format that CIS (mostly) uses 
  30. has a checksum byte for every 24 data bytes, which gives some confidence in 
  31. the process if Cload completes its run without reporting any checksum errors.  
  32. This is poor consolation if you've spent 15 minutes on CIS getting the hex 
  33. file, only to have Cload complain of errors halfway through the translation.  
  34. If you know you have a noisy phone line, or see occasional {{{ characters on 
  35. your screen, try using 300 baud and/or hang up and call back.  Sometimes 
  36. a second phone call gets routed through quieter lines or a better CIS node.
  37.  
  38. -------
  39.  
  40. Hex format
  41.  
  42.  :1800A800268A0E9C0033C080F9007F0ABA5C01B109CDE0E96000505189
  43.   ^^^    ^^                                              ^^^
  44.   |||    ||                                              ||_checksum byte
  45.   |||    ||_________________________________________________data bytes 
  46.   |||_______________________________________________________address field
  47.   |_________________________________________________________# bytes this line
  48.